package D12_19z.BU_3;

import java.io.Serializable;
import java.util.Arrays;

public class User implements Serializable {
    private String loginName;
    private String password;
    private String sex;
    private String edu;
    private String[] hobby;

    @Override
    public String toString() {
        return "User{" +
                "loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", edu='" + edu + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }

    public User(String loginName, String password, String sex, String edu, String[] hobby) {
        this.loginName = loginName;
        this.password = password;
        this.sex = sex;
        this.edu = edu;
        this.hobby = hobby;
    }

    public User() {
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEdu() {
        return edu;
    }

    public void setEdu(String edu) {
        this.edu = edu;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }
}
